Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 20, 2025


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 2 commits November 20, 2025 14:06
@alexprudhomme alexprudhomme changed the title [WIP] Migrate and refactor SmartSnippetFeedbackModal functional components refactor(atomic): refactor SmartSnippetFeedbackModal functional components Nov 20, 2025
@alexprudhomme alexprudhomme marked this pull request as ready for review November 20, 2025 18:20
@alexprudhomme alexprudhomme requested review from a team as code owners November 20, 2025 18:20
Copilot finished reviewing on behalf of alexprudhomme November 20, 2025 18:22
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR migrates six SmartSnippet Feedback Modal functional components from Stencil to Lit. The migration follows the established pattern of creating new Lit versions with a render* naming convention while preserving the original Stencil versions with a stencil- prefix for backward compatibility. Comprehensive unit tests were added for all migrated components.

Key Changes

  • Created Lit functional components: All six functional components (Header, Body, Options, Option, Details, Footer) were migrated to Lit with proper TypeScript types and reactive directives
  • Preserved Stencil versions: Original components were renamed with stencil- prefix to maintain compatibility with existing parent components
  • Added comprehensive tests: Each functional component has thorough unit test coverage following Vitest conventions

Reviewed Changes

Copilot reviewed 16 out of 17 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
stencil-smart-snippet-feedback-modal-common.tsx Renamed original Stencil file with deprecation notices
modal-header.ts New Lit functional component for modal header
modal-body.ts New Lit functional component for form body wrapper
modal-options.ts New Lit functional component for options fieldset
modal-option.ts New Lit functional component for individual radio option
modal-details.ts New Lit functional component for details textarea (has issues)
modal-footer.ts New Lit functional component for footer with buttons
feedback-options.ts Extracted feedback options data structure
*.spec.ts (7 files) Comprehensive unit tests for all components
atomic-smart-snippet-feedback-modal.tsx Updated import path to renamed Stencil file
atomic-insight-smart-snippet-feedback-modal.tsx Updated import path to renamed Stencil file

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Migrate / refactor SmartSnippetFeedbackModal* functional components

2 participants